package org.bonorsoft.modules.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.bonorsoft.modules.wechat.entity.NywxHf;
import java.util.List;

public interface NywxHfMapper extends BaseMapper<NywxHf> {

    @Select("SELECT hfid, tjid, hfnr, hfrid, hfrxm, hfsj " +
            "FROM nywx_hf " +
            "WHERE tjid = #{tjid} ")
    List<NywxHf> getNywxHfByTjid(String tjid);

    @Delete("delete from nywx_hf " +
            "where tjid = #{tjid} ")
    void removeByTjid(String tjid);
}
